<template>
  <div>
    <div v-for="(item, index) in arr" id="app">
      <input type="checkbox" v-model="arr1" :value="item" />
      <span>{{ item }}</span>
    </div>
    <ul>
      <li v-for="item in arr1">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  data() {
    return {
      arr: ["科幻", "喜剧", "动漫", "冒险", "科技", "军事", "娱乐", "奇闻"],
      arr1: [],
    };
  },
};
</script>

<style>
#app {
  display: inline-block;
}
</style>